﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CNVP.Framework.Utils;
using CNVP.JShop.BLL;
using CNVP.Config;

namespace CNVP.JShop.Web.AjaxT
{
    public partial class CounTime : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.AddHeader("pragma", "no-cache");
            Response.AddHeader("cache-control", "");
            Response.CacheControl = "no-cache";
            var action = Request.QueryString["action"];
            var cometime = Request.QueryString["timestamp"];
           // DateTime nowdt = new DateTime();

        }

        private Boolean isNight(DateTime dt) {

            int hh = dt.Hour;
            int mm = dt.Minute;
            Boolean flag = false;
            if (mm >= 30 && hh >= 23) {

                flag = true;
            
            }
            if (mm == 0 && hh <= 9) {

                flag = true;
            
            }

            return flag;
        }

        private int howDay(DateTime dt) {

            return 1;
        
        
        
        
        }
    }
}